package com.jdrx.sw.sewage.beans.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "DeviceVO", description = "设备VO")
@Data
public class DeviceVO implements Serializable {

    private static final long serialVersionUID = -1206960462117924923L;

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "设备照片")
    private String attach;

    @ApiModelProperty(value = "设备编号")
    private String deviceNum;

    @ApiModelProperty(value = "设备SN号")
    private String snNum;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "物料Id")
    private Long materielId;

    @ApiModelProperty(value = "物料名称")
    private String materielName;

    @ApiModelProperty(value = "设备品类id")
    private Long categoryId;

    @ApiModelProperty(value = "设备品类")
    private String categoryName;

    @ApiModelProperty(value = "设备规格")
    private String dossierSpec;

    @ApiModelProperty(value = "生产厂家id")
    private Long factoryId;

    @ApiModelProperty(value = "生产厂家")
    private String factoryName;

    @ApiModelProperty(value = "站点Id")
    private Long stationId;

    @ApiModelProperty(value = "站点名称")
    private String stationName;

    @ApiModelProperty(value = "站点工艺单元Id")
    private Long processunitId;

    @ApiModelProperty(value = "站点工艺单元名称")
    private String processunitName;

    @ApiModelProperty(value = "使用时间/录入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;

    @ApiModelProperty(value = "录入人")
    private String createBy;

    @ApiModelProperty(value = "备件数")
    private Integer attachmentNum;

    @ApiModelProperty(value = "维保周期")
    private Integer maintenanceCycleDay;

    @ApiModelProperty(value = "维保周期")
    private Integer maintenanceCycleHour;

    @ApiModelProperty(value = "资产入库类型id")
    private Long storageTypeId;

    @ApiModelProperty(value = "周期时间")
    private Integer cycleTime;

    @ApiModelProperty(value = "工作时间")
    private Integer workTime;

    @ApiModelProperty(value = "库类型（3-使用 2-库存 1-报废）")
    private Integer devType;

    @ApiModelProperty(value = "采购时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date purchaseTime;

    @ApiModelProperty(value = "使用时间（领用时间就是使用时间）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date enableTime;

    @ApiModelProperty(value = "厂区（逗号分隔）")
    private String factoryPeriod;
}
